Cut top quarter off garlic heads and wrap garlic in foil. Cut squash in half, lengthwise, and discard pulp and seeds. Place squash, cut-side down, on baking sheet lined with parchment paper. Cut onion into quarters and place beside squash on baking sheet.