From Japanese馬鹿野郎(baka yarō, “idiot”). Popularised by TV series on the Second Sino-Japanese War in Mainland China, where the use of this interjection by Japanese officers usually symbolises the brutality of the Japanese army. Often pronounced /ˈbagəjalu/. See also 日本軍隊中國語 ("Chinese language spoken by the Japanese army") on Wikipedia.