Will Ferrell plans to play ball in spring training — and play ball and play ball and play ball.

The comedian plans to play every position while making appearances at five Arizona spring training games on Thursday. He will play for all 10 teams involved, HBO and Major League Baseball announced Wednesday.

The star of "Anchorman: The Legend of Ron Burgundy," ''Talladega Nights: The Ballad of Ricky Bobby" and "Elf," among other movies, will travel to the Phoenix suburbs of Mesa, Tempe, Scottsdale, Glendale and Peoria via helicopter. The event will be filmed for an upcoming HBO special in conjunction with the Funny or Die website co-founded by Ferrell.

HBO said Ferrell is dedicating his special to fighting cancer. He also will honor Bert Campaneris' feat of playing nine positions in a game five decades ago. Starting times for four of the games were adjusted to make Ferrell's barnstorming tour possible.