The man had been arrested while cavorting on a street with a beer in one hand and a cheeseburger in the other in Charlottetown, Prince Edward Island, The National Post reported.
Jail officers suspected the man had also ingested drugs, so he was ordered to undress in a cell for observation.
The man reportedly asked guards if they were familiar with the animated character Cyril Sneer, an evil pink aardvark.
Court heard he then tucked his genitals between his legs, bent over and began dancing like the character moves, the report said.
During his performance, guards noticed a piece of plastic protruding from his bottom.
It was found to contain four doses of the powerful painkiller Hydromorphone, guards said.
Troy Campbell pleaded guilty to drug possession and was fined $805, the report said.