 " Boy @-@ Scoutz ' n the Hood " was written by Dan McGrath and directed by Jeffrey Lynch . The episode was recorded at the Village <unk> in West Los Angeles . Ernest Borgnine guest starred in the episode as himself . The staff liked his work on the films Marty and From Here to Eternity , so they asked him to do a guest appearance on the show . Borgnine felt he could not say no to the offer because his grandchildren were fans of the show . In the final scene of the episode , Borgnine plays a guitar and sings <unk> songs with the children . Borgnine was a guitar player in real life , so he brought his own guitar with him to the recording studio . Borgnine apologized because he felt that he was not being able to sing very well , but Nancy Cartwright , who provides the voice of Bart , thought his voice " added to the authenticity of his character " . The Simpsons 's creator Matt Groening thought the recording sessions with Borgnine were " so much fun " . Hank Azaria , who provides the voice of Apu , commented that Borgnine " had no idea what the hell he was doing . He 's a good actor , and he read his lines just fine , but he had no idea what the show was , no idea what we were doing . " 
