blood in stool

26 weeks pregnant, noticed that there was blood in my stool. stomach was hurting. been constipated my whole life. what can I do??