Here is a goal: how to easily cut cookie dough into squares?

Which way makes more sense to accomplish this goal?
use a pastry or pizza wheel.