Green’s Dictionary of Slang

where the hell...? phr.

[hell, the phr. (1)]

[mid-19C+] a general intensifier for a question; var. on what the hell...? phr.