Put it at the very end of a joke setup, after the setup line and before any reaction shot, so it closes the gag. For a joke that falls completely flat, follow it with Dun Dun Dun to underline the failed reveal, or add SpongeBob Fail beforehand when the setup itself is already going wrong.