Preheat your oven to 400°F (200°C).
Lightly butter a medium baking dish.
Lay the asparagus in a single layer in the dish.
Melt the butter in a small pan over low heat.
Add the garlic and cook for 30 seconds until fragrant.
Pour the garlic butter evenly over the asparagus.
Pour the heavy cream over the asparagus.
Sprinkle salt and black pepper on top.
Cover evenly with grated parmesan cheese.
Bake uncovered for 18–22 minutes, until the asparagus is tender and the cheese is golden.
Broil for 1–2 minutes if you want a crispier top.
Let rest for 5 minutes before serving.