 Homer suggesting they make the robots head explode using the phrase  "this statement is a lie" is a reference to the episode "I, Mudd" of  the original Star Trek, In with Kirk and Harry Mudd defeat a robot  with that phrase.