There are many ways to do it; however, one easy way would be to do something like this:
SELECT value FROM HEA.Parselist(@TeamGroup, ',')
UNION
SELECT team
FROM TeamGroups
WHERE @TeamGroup = 'All'
That would union in all your teams if @TeamGroup was a keyword of "All"