Role in Phineas and FerbEdit
The Goozim first appears in one of Dr. Doofenshmirtz's childhood flashback, where Dr. D's father won a dog in a game involving this Creature called 'Poke the Goozim with a Stick'. Later, the creature appears at the end of the song Carpe Diem, where he is seen in the background, still in his square-shaped cage.
Role in Phineas and Ferb the Movie: Across the 2nd DimensionEdit
Technically, the Goozim doesn't appear in the movie, but his 2nd Dimension counterpart does.