The star will provide his voice for the project. The story follows a boy who floods an ant colony with his water gun, and then he is shrunk to ant size in the land of the insects.
Tom Hanks joins a cast that includes Nicolas Cage, Julia Roberts, Paul Giamatti, Meryl Streep and Lily Tomlin.
The Ant Bully opens in theatres next summer.