I don't know anything about Peds, but (assuming you're a US grad) anyone can match in CA for IM. There are 33 friggen programs in the state, and they range everything from crappy backwater community programs all the way to UCSF. If your only priority is getting back to the state, and you're willing to train in Oakland, Stockton, Bakersfield, or some random IMG-heavy hospital in LA, there is almost no set of circumstances in which you wouldn't match anywhere in CA. The question is whether you can match in a "good" CA program, and what your personal definition of "good" is.
This is true. Personally I wouldn't be willing to go to a sub-par program just to be in CA (and I think those programs tend to be rather malignant, which I think would have far more impact on the OP's happiness than whether he/she is in CA), but if that's really all that matters I would think for IM, Peds, FM, and Psych, it'd be fairly reasonable to expect to match into a CA program if you applied to all of the programs within your specialty in the state, assuming no giant red flags.
Still--I think anyone that has that mindset should re-evaluate their priorities. In my mind, the only reason (and there may be many more--maybe I'm being close-minded here) worth basing your specialty on geography and/or going to a sub-par program for geography would be for your significant other and/or family. (ie., if my wife had an amazing once-in-a-lifetime opportunity in Bakersfield that would significantly advance her career and/or happiness, and I felt I'd get decent-enough training to be a good internist by going there, then I think it'd be worth considering going there. Being near aging and frail elderly parents could count as well--family comes first.
However, the thing to consider in circumstances like the above is whether your family would actually be better off with you going to a better program, even if you're farther away, as since presumably as a physician, the odds are you'll be the main breadwinner for the household.
Still, everyone's entitled to choose their specialty and rank list by what they feel will make them the happiest. OP, I'd encourage you to really think and reflect carefully on this. Don't do anything you'll later regret (one way or the other--only you can really answer that, not us random internet folk)