Put it at the exact beat where the joke lands, after the setup and just before the reaction shot. Pair it with a cartoon boing for a clumsy entrance, or follow it with a sad trombone when the fail gets worse, so each cue marks a new step in the gag.