Place it just after the messy moment peaks, then follow it with a classic fart sound for a bigger farmyard gag, or cut to a SpongeBob fail sound when the joke is about a blunder. Put a vine boom sound before it if you want it to land as the payoff.