The Great Dictator (1940). Chaplin plays both:
The dual role satirizes Nazi ideology and power's absurdity—culminating in the barber's impassioned speech for humanity, delivered in Hynkel's place.