Preheat oven to 400 degrees. Coat a large nonstick baking sheet with cooking spray. Place squash and onion on prepared baking sheet; spray with cooking spray. Sprinkle with garam masala, salt and pepper; toss to coat.
Roast, tossing about halfway through cooking, until squash and onions are tender and slightly browned, about 25 minutes.