Off-topic: If the OP is a male and gets married to another male (who is a citizen) in Massachusetts, he still won't get a green card because federal law defines marriage as a "legal union exclusively between one man and one woman." Shucks..
A number of countries that do not have same-sex marriage do recognize foreign same-sex marriages for immigration (Israel is one example).