Preheat your oven to 400°F. Line a large baking sheet with parchment paper.
Toss the squash cubes with olive oil and minced garlic until evenly coated. Spread them in a single layer on the prepared baking sheet—don't crowd the pan, or they'll steam instead of roast.
Roast for 30-40 minutes, stirring halfway through, until the edges are golden brown and a fork easily pierces the cubes (internal temperature should reach about 200°F).
Transfer the roasted squash to a food processor or blender. Add butter, salt, pepper, and nutmeg if using.
Puree until smooth, about 1-2 minutes. If it's too thick, add 1-2 tablespoons of water or broth. Taste and adjust seasoning as needed.