Put it at the end of a fail sequence, after the shocked reaction and before the group laugh, so the gag closes the scene. Pair it with a shocked reaction for the setup and a goofy yell for the follow-up, keeping the fart as the final beat.