Place it immediately after the setup in a comedy edit, just before the visual payoff, then follow it with the fail sound when the gag collapses or with clapping when the joke lands and the crowd should cheer.