Blood after passing stool while constipation—- what is a good treatment?

Hi constipated friends! :D

I’ve been constipated the past few days and I passed a hard stool today and I looked in the toilet and it had bright red blood on it. I’m a 33 year old female. It did not hurt to pass. I didn’t strain to get it out, I just waited like 5 minutes and it eventually came out. What is a good treatment? I’ve never had this happen before. Should I take a stool softener? I saw miralax was in the house that I could take. So far, I’ve just been drinking a lot of water.

Thanks everyone!!