Anakin gets kidnapped by pirates. He escapes fairly quickly but decides not to return home yet. He's pregnant and thinks that this is the perfect excuse to take a 6 month break. So he pretends to be his kidnappers and makes confusing ransom demands to a) make sure the Jedi dont get too suspiscious with the silence and b) piss them off (Anakin is a petty person). Spending 6 months relaxing somewhere and calling up Windu just to piss him off every now and again. Best Vacation Ever.
So this happens after the Rako Hardeen arc. Why? Because if it happened before Anakin would be worried about Obi Wan assuming he was kidnapped and would probably contact him and then Obi Wan would contact the council. If it happens after then… it’s the perfect opportunity to get back at Obi Wan a little for letting him assume he was dead. Kidnapped is lesser then death and it’ll be good to give Obi Wan a taste of his own medicine.
I mean other than that he’s somewhere tropical. Like it’s probably outer rim but it’s nice and there’s a little town of people who don’t mind that he’s basically just moved in with his ship (he probably doesn’t even buy a property just lives off the ship he stole after disabling all the trackers), every now and then he sends another ransom request for himself to Mace, the hardest part is not to ask for something ridiculous and out of proportion – he has to make himself sound like pirates not actually troll the Jedi order like he really wants to.
He of course tells the child about all the parts of his plan and the reasons why he’s doing it and just generally informing them who they can and should annoy in the Jedi Order and the other important people in their lives as they get involved in dealing with the ‘ransoms’ for him.