Place it at the start of a reveal, just before the visual punchline appears, then follow it with an evil laugh for a mock-villain beat or a funny ha ha laugh when the joke turns harmless. Add a ba dum tss drum sting after a failed ambush to close the gag.