Wiktionary
what was someone smoking
phr. (context idiomatic jocular English) Used to express surprise about someone's uncharacteristic or whacky, offbeat past actions.