Place it at the end of a failed-plan scene, after the setup has played out and the result is clear. Follow it with the fail sound meme for the payoff, or open with it was at this moment he knew before the clip for a slower build to the same joke.