It is more or less the same. Both studies the user in a particular environment. In the world of UX, contextual enquiry is the term generally used. Ethnography is more an academic term used in Anthropology, sociology and other pure academic settings etc.