Barney: On Again, Off Again (2003 Season 8 episode)

Synopsis
The episode starts with the Barney doll looking through the caboose window