Peel the squash with a vegetable peeler, scoop out seeds, and cut the squash into 1/2- to 1- inch cubes. Put in a bowl. Heat the maple syrup, brown sugar, butter, cinnamon, vanilla, salt, and nutmeg until hot and butter is melted. Drizzle over the squash cubes and stir gently to coat. Pour into the prepared baking dish; cover with foil and bake for 30 minutes. Remove foil, stir gently, and bake uncovered for about 15 minutes longer, or until squash is tender.