Put it near the start of a pet fail, just before the main mishap, then follow it with a chipmunk laugh once the dog's owner reacts, keeping the bark as the cue for the joke that follows.