You could write your own modified version of SkeletonRagdoll2D
and do that, yes.
fshakhverdiyev I can create skin in spine editor with constraints and use in unity as a ragdolled body. Is this good way ?
I'm not sure I understand what you mean by this sentence, especially by "with constraints". If you meant Spine's Physics Constraints, then no, please note that a Physics Constraint is not colliding with anything, for example not with Unity's colliders of your scene.
If you meant other constraints to then control your primary bones: you could do that, this could be a nice setup.
If you mean whether you create a skin just to assign bones which shall be included in the ragdoll as skin-bones: you could do that as well, but I would not go that far just to define a set of bones.