I recommend peeling the pears, as when baked, the skin doesn’t soften or break down. You’ll be left with an unpleasant tough texture if you skip peeling the pears.