how would test whether the Mu of males = Mu of females (means)

and my data set is 0 = male and 1 = females.

I am really stuck on how to test whether the mean of a BINOMIAL VARIABLE (0s and 1s). I know that I can use z-test if I use proportions but I want to test the means here, how would I do that?

thank you