From cookies to cakes, these smart buys will ensure a perfect result.