Slice the squash into pieces and mix with the garlic, rosemary, olive oil, salt, and black pepper.
Line a baking sheet with parchment paper. Spread the squash mixture onto the baking sheet. Place the baking sheet in the oven to cook for about 45 to 50 minutes. Make sure that the squash is caramelized and golden brown in color before removing. Remove and enjoy!